import request from '@/utils/request'

export function listNeedMe(query) {
  return request({
    url: '/approve/approve/listNeedMe',
    method: 'get',
    params: query
  })
}

export function listNeedMeAlready(query) {
  return request({
    url: '/approve/approve/listNeedMeAlready',
    method: 'get',
    params: query
  })
}

export function listMyApply(query) {
  return request({
    url: '/approve/approve/listMyApply',
    method: 'get',
    params: query
  })
}

export function listByMissionId(query) {
  return request({
    url: '/approve/approve/listByMissionId',
    method: 'get',
    params: query
  })
}

export function listDetail(query) {
  return request({
    url: '/approve/approve/listByActivityId',
    method: 'get',
    params: query
  })
}

export function getByActivityId(query) {
  return request({
    url: '/approve/approve/getByActivityId',
    method: 'get',
    params: query
  })
}

export function pass(query) {
  return request({
    url: '/approve/approve/pass',
    method: 'post',
    data: query
  })
}

export function deny(query) {
  return request({
    url: '/approve/approve/deny',
    method: 'post',
    params: query
  })
}

export function addApproveMission(data) {
  return request({
    url: '/approve/approve/add',
    method: 'post',
    data: data
  })
}
